#set($layout = "eslayout.htm")
#set($isHide = true)
#set($noNavbar = true)
#set($pageCtrl = 'search')
#parse("/esvml/web/list/init.vm")
#if($pattrs.get("catname"))
#set($pageTitle= $!pattrs.get("catname") + '_华履搜索')
#else
#set($pageTitle= '华履搜索')
#end
<link rel="stylesheet" type="text/css" href="./css/index.css">
<div class="bread-path">
	<div class="inner clearfix">
		<p class="list">
			<a href="?$myweb.getQueryStringcat($request,"null","top",false)" target="_self" class="cla">
				<span>所有类目</span>
			</a>
			#if($pattrs.get("bigid"))
			<a href="?$myweb.getQueryStringcat($request,$pattrs.get("bigid"),"big",false)" class="cla" target="_self" hidefocus>
				<i>></i>
				<span>$!pattrs.get("bigname")</span>
			</a>
			#end

			#if($pattrs.get("catid")&&$pattrs.get("bigid"))
			<a href="?$myweb.getQueryStringcat($request,$pattrs.get("catid"),"small",false)" class="cla" target="_self" hidefocus>
				<i>></i>
				<span>$!pattrs.get("catname")</span>
			</a>
			#else
			<a href="?$myweb.getQueryStringcat($request,$pattrs.get("catid"),"big",false)" class="cla" target="_self" hidefocus>
				<i>></i>
				<span>$!pattrs.get("catname")</span>
			</a>
			#end
			</p><!-- 类目 -->
			#if($selectattr)
			#foreach($sel in $selectattr.get("selobj"))
				<a href="$request.getServletPath()
?$!sel.get("obj").get("exurl")" class="sel" title="$!sel.get("obj").get("name")" target="_self" hidefocus>
					$!sel.get("obj").get("name")
					<i>X</i>
				</a>
			#end
			#end
			<p class="t-num">
				共 <i>$!result.result.optInt('total',0)</i> 件相关商品
			</p>
	</div><!-- inner -->
</div><!-- bread-path -->
<div class="a-list">
	<div class="inner">
			#if($pattrs.get("bigobjs"))
				<div class="subm-list clearfix">
					<div class="subm-tab">分类</div>
					<div class="subm-tab-info">
						<ul>
						#foreach($bigcat in $pattrs.get("bigobjs"))
						<li>
							<a href="?$myweb.getQueryStringcat($request,$!bigcat.get("id"),"big",true)" target="_self" title="$!bigcat.get("name")" data="$!bigcat.get("id")">
									$!bigcat.get("name")
									<span class="checkbox">
										<i>
											<i class="t1"></i>
											<i class="t2"></i>
										</i>
									</span>
								</a>
							</li>
						#end
						</ul>
					</div><!-- subm-tab-info -->
						<div class="other-tab">
						#if($pattrs.get("bigobjs").size()>8)
						<button class="more">
							<span>更多</span>
							<i>
								<i class="t1"></i>
								<i class="t2"></i>
							</i>
						</button>
						#end
						<button class="confirm hide">确定</button>
						<button class="cancel hide">取消</button>
						</div>
				</div><!-- big-list -->
			#end

			#if($pattrs.get("smallobjs"))
				<div class="subm-list clearfix" style="height: 96px;">
					<div class="subm-tab">分类</div>
					<div class="subm-tab-info">
						<ul>
						#foreach($smallcat in $pattrs.get("smallobjs"))
						<li>
							<a href="?$myweb.getQueryStringcat($request,$!smallcat.get("id"),"small",true)" target="_self" title="$!smallcat.get("name")" data="$!smallcat.get("id")">
									$!smallcat.get("name")
									<span class="checkbox">
										<i>
											<i class="t1"></i>
											<i class="t2"></i>
										</i>
									</span>
								</a>
							</li>
						#end
						</ul>
					</div><!-- subm-tab-info -->
						<div class="other-tab">
						#if($pattrs.get("smallobjs").size()>8)
						<button class="more active">
							<span>更多</span>
							<i>
								<i class="t1"></i>
								<i class="t2"></i>
							</i>
						</button>
						#end
						<button class="confirm hide">确定</button>
						<button class="cancel hide">取消</button>
						</div>
				</div><!-- small-list -->
			#end	
			<!--attr in this-->
			#set($ats=$pattrs.get("objs"))
			#set($index=0)
			#foreach( $at in $ats)
				#set($pid=$convert.toInteger($!at.get("id")))
				#if(!$selectattr.get("selids").contains($pid) && $index < 4)
				<div class="subm-list clearfix">
					<div class="subm-tab">$!at.get("name")</div>
					#set($atsub=$at.get("vals"))
					<div class="subm-tab-info">
						<ul>
						#foreach($sub in $atsub)
						<li>
						#set($id=$!sub.get("id"))
								<a href="?$myweb.getQueryString($request,$id)" target="_self" title="$!sub.get("name")" data="$!sub.get("id")">
									$!sub.get("name")
									<span class="checkbox">
										<i>
											<i class="t1"></i>
											<i class="t2"></i>
										</i>
									</span>
								</a>
							</li>
						#end
						</ul>
					</div><!-- subm-tab-info -->
						<div class="other-tab">
						<button class="sel">
							多选
							<i>+</i>
						</button>
						#if($atsub.size()>8)
						<button class="more">
							<span>更多</span>
							<i>
								<i class="t1"></i>
								<i class="t2"></i>
							</i>
						</button>
						#end
						<button class="confirm hide">确定</button>
						<button class="cancel hide">取消</button>
					</div>
				</div><!-- subm-list -->
				#end
				#set($index=$index+1)
			#end
				<div class="other-list">
					#set($index=0)
					#foreach( $at in $ats)
					#set($pid=$convert.toInteger($!at.get("id")))
					#if(!$selectattr.get("selids").contains($pid) && $index > 3)
					<div class="subm-list clearfix">
						<div class="subm-tab">$!at.get("name")</div>
						#set($atsub=$at.get("vals"))
						<div class="subm-tab-info">
							<ul>
							#foreach($sub in $atsub)
							<li>
							#set($id=$!sub.get("id"))
									<a href="?$myweb.getQueryString($request,$id)" target="_self" title="$!sub.get("name")" data="$!sub.get("id")">
										$!sub.get("name")
										<span class="checkbox">
											<i>
												<i class="t1"></i>
												<i class="t2"></i>
											</i>
										</span>
									</a>
								</li>
							#end
							</ul>
						</div><!-- subm-tab-info -->
							<div class="other-tab">
							<button class="sel">
								多选
								<i>+</i>
							</button>
							#if($atsub.size()>8)
							<button class="more">
								<span>更多</span>
								<i>
									<i class="t1"></i>
									<i class="t2"></i>
								</i>
							</button>
							#end
							<button class="confirm hide">确定</button>
							<button class="cancel hide">取消</button>
						</div>
					</div><!-- subm-list -->
					#end
					#set($index=$index+1)
				#end
				</div>
		<span class="see-more">查看更多</span>
	</div><!-- inner -->
</div><!-- a-list -->
<div class="sort">
	<div class="inner clearfix">
		<div class="btn" up="" down="" type="all"><span>综合</span></div>
		<div class="btn" type="saleqty" up="true" down="true">
			<span>销量</span>
			<i class="isort">
				<i></i>
				<em></em>
				<span></span>
			</i>
		</div>
		<div class="btn w-i" type="shop_price" up="false" down="true">
			<span>价格</span>
			<i class="isort">
				<i></i>
				<em></em>
				<span></span>
			</i>
		</div>
		<div class="dropdown area" type="citycode">
			<span>所在地区</span>
			<i class="down">
				<i></i>
				<em></em>
			</i>
			<ul class="pr">
				<li class="all">所有区域</li>
				#foreach($pro in $esprovince)
				#set($escity=$myweb.getList("ES_CITY","datalist","ES_CITY.ES_PROVINCE_ID==$pro.id"))
				#set($ci="")
					#foreach($city in $escity)
							#set($ci=$!ci + $city.city_name+",")
					#end
					
				<li content="$ci" class="province">$pro.province_name</li>
				#end
				<ul class="citys clearfix"></ul>
			</ul>
		</div>
		<div class="price">
			<input type="tel" placeholder="起定量(以下)" class="begin">
			<span>&nbsp;&nbsp;</span>
			<input type="tel" placeholder="最低价" class="min">
			<span>—</span>
			<input type="tel" placeholder="最高价" class="max">
			<button type="button">确定</button>
		</div><!-- price -->
		<div class="select" type="isnew">
			<span class="checkbox">
				<i>
					<i class="t1"></i>
					<i class="t2"></i>
				</i>
			</span>
			新品
		</div>
		<div class="select" type="isbest">
			<span class="checkbox">
				<i>
					<i class="t1"></i>
					<i class="t2"></i>
				</i>
			</span>
			推荐
		</div>
		<div class="select" type="ismixed">
			<span class="checkbox">
				<i>
					<i class="t1"></i>
					<i class="t2"></i>
				</i>
			</span>
			混批
		</div>
		<form class="search-bar clearfix" action="/c/pub/s/index.html" target="_self">
			<input type="text" placeholder="输入商品名称" name="keywords">
			<button type="submit" class="conf">搜索</button>
		</form>
	</div><!-- inner -->
</div><!-- sort -->
#set($totpage=$!result.result.optInt('totpage',0))
<div class="show-area" totpage="$!totpage">
	<div class="inner clearfix">
		<div class="left clearfix">
			#set($count=$!result.result.optInt('num',0))
			#set($o=$count - 1)
			#if($count==0)
				<div class="no-goods">
				没有数据!
			</div>
			#end
			#if($count>0)
			#foreach($i in [0..$o])
			#set ($pdtid=$result.result.items[$i].optString("id"))
			#set($pdtinfo=$goodscache.getESGoodsCache($getutil.getInteger($pdtid)))
				<div class="one-block" pdt="$pdtid">
					<i class="get">收藏</i>
					<a href="/j/s/pdt/${pdtid}.html" class="goods-link">
						<p class="img">
							<img src="$!pdtinfo.getTHUMB()@444w_80q" />
						</p>
						<p class="shoes-price">￥$!pdtinfo.getSHOP_PRICE()<i class="icon icon-dhj"></i></p>
						<ul class="inter clearfix">
							#set($prcsize=$!pdtinfo.getEsGoodsPriceCaches().size())
							<li>
							<p class="red">
							￥$!pdtinfo.getEsGoodsPriceCaches().get(0).getPRICE()
							</p>
							<p>
							#if($prcsize==1)
								≥$!pdtinfo.getEsGoodsPriceCaches().get(0).getQTY()双
								#else
								$!pdtinfo.getEsGoodsPriceCaches().get(0).getQTY()-$!pdtinfo.getEsGoodsPriceCaches().get(1).getQTY()双
							#end
							</p>
							</li>

							#if($prcsize>1)
								<li>
									<p class="red">
										￥$!pdtinfo.getEsGoodsPriceCaches().get(1).getPRICE()
									</p>
								<p>
									#if($prcsize==2)
										>$!pdtinfo.getEsGoodsPriceCaches().get(1).getQTY()双
									#elseif($prcsize==3)
									#set($qty2=$pdtinfo.getEsGoodsPriceCaches().get(1).getQTY() + 1)
									$!{qty2}-$!pdtinfo.getEsGoodsPriceCaches().get(2).getQTY()双
									#end
								</p>
								</li>
							#end

							#if($prcsize==3)
							<li>
							<p class="red">
								￥$!pdtinfo.getEsGoodsPriceCaches().get(2).getPRICE()
							</p>
								<p>>$!pdtinfo.getEsGoodsPriceCaches().get(2).getQTY()双</p>
							</li>
							#end
						</ul>
						<p class="shoes-name">$!pdtinfo.getNAME()</p>
					</a>
					#set($pdtclientid=$pdtinfo.getAD_CLIENT_ID())
					#set($clientinfo=$clientcache.getESADClientCache($pdtclientid))
					<a class="shoes-store" href="/j/s/$!{pdtclientid}.html">$clientinfo.getNAME()</a>
					<p class="shoes-nums clearfix">
						<span class="shoe-discuss">已有<i>$!pdtinfo.getEsStatisticsCache().getCOLLECTIONQTY()人</i>收藏</span>
						<span class="deal-num">成交: <i>$!pdtinfo.getEsStatisticsCache().getSALEQTY()笔</i></span>
					</p>
				</div>
				#end
			#end
		</div><!-- left -->
		<div class="right">
			<p class="title">TOP 热卖</p>
			#foreach($hot in $esregoods)
			#set($hotpdt=$goodscache.getESGoodsCache($getutil.getInteger($hot.es_goods_id)))
			<a class="one-block" href="/j/s/pdt/${hot.es_goods_id}.html">
				<i class="get collect" collect="lgoods" pdtid="1">收藏</i>
				<img src="$hotpdt.getTHUMB()" />
				<p class="shoes-price">￥$hotpdt.getSHOP_PRICE()</p>
				<p class="shoes-name">$hotpdt.getNAME()</p>
				<p class="label">
					<label class="l1">热卖: $hotpdt.getEsStatisticsCache().getSALEQTY()件</label>
					<!--label class="l2">伙拼: 8.8折</label-->
				</p>
			</a>
			#end
		</div>
		<div class="paging ng-hide" ng-show="pageNum>0">
			<pagination total-items="pageNum" ng-model="currentPage" max-size="maxSize" boundary-links="true" rotate="false" first-text="首页" last-text="末页" direction-links="false" ng-change="pageChanged()"></pagination>
			<ul class="act">
				<li class="total">
					<span class="ye">共 <i ng-bind="pageNum/10"></i> 页</span>
					<span>到</span>
					<input type="text" maxlength="2" ng-model="pageInput">
					<span>页</span>
				</li>
				<li class="conf">
					<a href="" href="javascript:void(0)" ng-click="pageChanged(1)">确定</a>
				</li>
			</ul>
		</div>
	</div>
</div><!-- show-area -->
<form action="/c/pub/s/index.html" method="get" name="frmAreaSearch" id="frmFiltSearch" style="display:none" target="_self">
	$!qform
</form>
<script type="text/javascript">
	#set($jspath = [__uri('./js/responsive.js')])
</script>
